package com.logic.landseaserver.ws.response;


import com.logic.landseaserver.domain.PreOffrentBill;
import com.logic.landseaserver.ws.dto.PreBillDetailDTO;
import com.logic.landseaserver.ws.dto.QueryCouponUesdDTO;

import java.util.List;

/**
 * Created by Junny on 2017/8/24.
 */
public class PreBillResp {
    private Integer id;
    private Integer contractId;
    private String contractNo;
    private String billMonth;
    private Double refundAmount;
    private Double damagesAmount;
    private String offrentType;
    private Boolean depositFlag;
    private String comment;
    private Double positiveAmount;
    private Double negativeAmount;
    private Double hourseDpsAmount;
    private String lastHourseDate;
    private Double userAccountAmount;
    private List<PreBillDetailDTO> positiveDetails;
    private List<PreBillDetailDTO> nagativeDetails;
    private List<QueryCouponUesdDTO> uesdCodes;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getContractId() {
        return contractId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public String getContractNo() {
        return contractNo;
    }

    public void setContractNo(String contractNo) {
        this.contractNo = contractNo;
    }

    public String getBillMonth() {
        return billMonth;
    }

    public void setBillMonth(String billMonth) {
        this.billMonth = billMonth;
    }

    public Double getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(Double refundAmount) {
        this.refundAmount = refundAmount;
    }

    public Double getDamagesAmount() {
        return damagesAmount;
    }

    public void setDamagesAmount(Double damagesAmount) {
        this.damagesAmount = damagesAmount;
    }

    public String getOffrentType() {
        return offrentType;
    }

    public void setOffrentType(String offrentType) {
        this.offrentType = offrentType;
    }

    public Boolean getDepositFlag() {
        return depositFlag;
    }

    public void setDepositFlag(Boolean depositFlag) {
        this.depositFlag = depositFlag;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Double getPositiveAmount() {
        return positiveAmount;
    }

    public void setPositiveAmount(Double positiveAmount) {
        this.positiveAmount = positiveAmount;
    }

    public Double getNegativeAmount() {
        return negativeAmount;
    }

    public void setNegativeAmount(Double negativeAmount) {
        this.negativeAmount = negativeAmount;
    }

    public List<PreBillDetailDTO> getPositiveDetails() {
        return positiveDetails;
    }

    public void setPositiveDetails(List<PreBillDetailDTO> positiveDetails) {
        this.positiveDetails = positiveDetails;
    }

    public List<PreBillDetailDTO> getNagativeDetails() {
        return nagativeDetails;
    }

    public void setNagativeDetails(List<PreBillDetailDTO> nagativeDetails) {
        this.nagativeDetails = nagativeDetails;
    }

    public String getLastHourseDate() {
        return lastHourseDate;
    }

    public void setLastHourseDate(String lastHourseDate) {
        this.lastHourseDate = lastHourseDate;
    }

    public Double getHourseDpsAmount() {
        return hourseDpsAmount;
    }

    public void setHourseDpsAmount(Double hourseDpsAmount) {
        this.hourseDpsAmount = hourseDpsAmount;
    }

    public List<QueryCouponUesdDTO> getUesdCodes() {
        return uesdCodes;
    }

    public void setUesdCodes(List<QueryCouponUesdDTO> uesdCodes) {
        this.uesdCodes = uesdCodes;
    }

    public Double getUserAccountAmount() {
        return userAccountAmount;
    }

    public void setUserAccountAmount(Double userAccountAmount) {
        this.userAccountAmount = userAccountAmount;
    }

    public static PreBillResp convertResp(PreOffrentBill pojo) {
        PreBillResp rsp = new PreBillResp();
        rsp.setId(pojo.getId());
        rsp.setContractId(pojo.getContractId());
        rsp.setContractNo(pojo.getContractNo());
        rsp.setBillMonth(pojo.getBillMonth());
        rsp.setRefundAmount(pojo.getRefundAmount());
        rsp.setDamagesAmount(pojo.getDamagesAmount());
        rsp.setOffrentType(pojo.getOffrentType());
        rsp.setDepositFlag(pojo.getDepositFlag());
        return rsp;
    }
}
